<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
   <table border="1">
       <tr>
           <th>员工姓名</th>
           <th>员工id</th>
           <th>月份</th>
           <th>奖励原因</th>
           <th>奖金</th>
           <th>处罚原因</th>
           <th>罚金</th>
           <th>备注</th>
           <th>操作</th>
       </tr>
      <c:forEach items="${pageInfo.datas}" var="rewardAndpunish" >
       <tr>
           <td>${rewardAndpunish.employee.e_name}</td>
           <td>${rewardAndpunish.e_id}</td>
           <td>${rewardAndpunish.date}</td>
           <td>${rewardAndpunish.reward_cause}</td>
           <td>${rewardAndpunish.reward_number}</td>
           <td>${rewardAndpunish.punish_cause}</td>
           <td>${rewardAndpunish.punish_number}</td>
           <td>${rewardAndpunish.note}</td>
           <td onclick="remove('${rewardAndpunish.r_id}')">删除</td>
       </tr>
       </c:forEach>
   </table>
    <div class="bottom">
        <button>上一页</button>
         <div class="currentpage">${pageInfo==null?pageInfo.currentPage:1}</div>
        <button onclick="submit(1)">下一页</button>
    </div>
</body>
</html>